projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd0bdd
)
luci-base: dispatcher: fix null access on dispatching unknown urls
author
Jo-Philipp Wich
<
[email protected]
>
Mon, 11 Oct 2021 17:01:39 +0000
(19:01 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Tue, 12 Oct 2021 21:05:16 +0000
(23:05 +0200)
Signed-off-by: Jo-Philipp Wich <
[email protected]
>
(cherry picked from commit
4d28c390ab181636b101a17203b2db3391784687
)
modules/luci-base/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/dispatcher.lua
b/modules/luci-base/luasrc/dispatcher.lua
index 44c17c85f8a649d492b50e69e28b6846bcd488a4..3c1d438f34a3b690e36972a7ff9ba8b130497bba 100644
(file)
--- a/
modules/luci-base/luasrc/dispatcher.lua
+++ b/
modules/luci-base/luasrc/dispatcher.lua
@@
-920,7
+920,9
@@
function dispatch(request)
return
end
- page.readonly = not perm
+ if page then
+ page.readonly = not perm
+ end
end
local action = (page and type(page.action) == "table") and page.action or {}